home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / c / host / Host_Stat.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-01  |  1.2 KB  |  50 lines

  1. /* 
  2.  * Host_Stat.c --
  3.  *
  4.  *    Does a "stat" on the host database and returns the stat structure.
  5.  *
  6.  * Copyright 1990 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. #ifndef lint
  17. static char rcsid[] = "$Header: /sprite/src/lib/c/host/RCS/Host_Stat.c,v 1.1 90/10/31 22:35:06 jhh Exp $ SPRITE (Berkeley)";
  18. #endif /* not lint */
  19.  
  20. #include <stdio.h>
  21. #include <host.h>
  22. #include <hostInt.h>
  23. #include <sys/types.h>
  24. #include <sys/stat.h>
  25.  
  26.  
  27. /*
  28.  *----------------------------------------------------------------------
  29.  *
  30.  * Host_Stat --
  31.  *
  32.  *    Stat the host database.
  33.  *
  34.  * Results:
  35.  *    0 if successful, -1 otherwise and errno is set.
  36.  *
  37.  * Side effects:
  38.  *    None.
  39.  *
  40.  *----------------------------------------------------------------------
  41.  */
  42.  
  43. int
  44. Host_Stat(statPtr)
  45.     struct stat    *statPtr;    /* Place to store stat results. */
  46. {
  47.     return stat(hostFileName, statPtr);
  48. }
  49.  
  50.